<style type="text/css">
#rec_tab-table { border:1px solid #bbb;border-collapse:collapse; }
#rec_tab-table td{ border:1px solid #ccc;border-collapse:collapse;padding:5px; }	
</style>
<script type="text/javascript">
$(document).ready(function() 
    { 
        $("#rec_tab-table").tablesorter(); 
    } 
); 
</script>
<div class="main-content">
		<h1 class="pagetitle">Recomendaações Instântaneas AIB</h1>
        <div class="column1-unit">
          <h1>Recomendações de Hoje:</h1>                            
          <h3>Tabela com todas as recomendações instântaneas postadas no twitter e publicadas no AIB.</h3>
<p>
{% if response_rec_tab %}
	<table class="tablesorter" cellspacing="0" id="rec_tab-table" style="font-family:Verdana;font-size:9px;left:0px;display:inline; /*Fix IE floating margin bug*/; float:left; width:480px; margin:0 0 0 -20px; overflow:visible !important /*Firefox*/; overflow:hidden /*IE6*/;">
		<thead>
			<tr style="background:#eeeeee;">
				<th class="header">Ativo</th>
				<th class="header">Data Compra</th>
				<th class="header">Porc. Carteira</th>
				<th class="header headerSortDown">Preço Compra</th>
				<th class="header">Real Trans.</th>
			</tr>
		</thead>
		<tbody>
	{% for row in response_rec_tab %}  
		<tr> 
		<td id="{{ fields.0.0 }}_{{ row.0 }}">{{ row.0 }}</td>    
		<td id="{{ fields.1.0 }}_{{ row.0 }}">{{ row.1 }}</td> 	
		<td id="{{ fields.2.0 }}_{{ row.0 }}">{{ row.2 }}%</td> 
		<td id="{{ fields.3.0 }}_{{ row.0 }}">{{ row.3 }}</td> 
		<td id="{{ fields.4.0 }}_{{ row.0 }}">{{ row.4 }}</td> 
		</tr>   
	{% endfor %}
		</tbody>
	</table>
{% else %}
	</br>
	<h3><b>Nenhuma.</b></h3>
{% endif %}
</p>
</div>
        <hr class="clear-contentunit" />          

        <div class="column1-unit">
          <h1>Histórico de Recomendações:</h1>
		  <h3>Histórico com as últimas recomendações feitas pela plataforma AIB.</h3>		  
<table class="tablesorter" cellspacing="0" id="rec_tab-table" style="font-family:Verdana;font-size:9px;left:0px;display:inline; /*Fix IE floating margin bug*/; float:left; width:480px; margin:0 0 0 -20px; overflow:visible !important /*Firefox*/; overflow:hidden /*IE6*/;">
	<thead>
		<tr style="background:#eeeeee;">
			<th class="header">Ativo</th>
			<th class="header">Data Compra</th>
			<th class="header">Porc. Carteira</th>
			<th class="header headerSortDown">Preço Compra</th>
			<th class="header">Real Trans.</th>
		</tr>
	</thead>
	<tbody>
{% for row in response_rec_tab_hist %}  
	<tr> 
    <td id="{{ fields.0.0 }}_{{ row.0 }}">{{ row.0 }}</td>    
	<td id="{{ fields.1.0 }}_{{ row.0 }}">{{ row.1 }}</td> 	
	<td id="{{ fields.2.0 }}_{{ row.0 }}">{{ row.2 }}%</td> 
	<td id="{{ fields.3.0 }}_{{ row.0 }}">{{ row.3 }}</td> 
	<td id="{{ fields.4.0 }}_{{ row.0 }}">{{ row.4 }}</td> 
	</tr>   
{% endfor %}
	</tbody>
</table>
<p>
</p>
</div>
</div>
